package  com.ylb.rent.dao;

import java.util.List;
import  com.ylb.rent.entity.SchoolApartmentDist;
import org.springframework.stereotype.Repository;

/**
 * 学校公寓Mapper接口
 * 
 * @author ylb
 * @date 2023-06-29
 */
@Repository
public interface SchoolApartmentDistMapper 
{
    /**
     * 查询学校公寓
     * 
     * @param id 学校公寓主键
     * @return 学校公寓
     */
    public SchoolApartmentDist selectSchoolApartmentDistById(Long id);

    /**
     * 查询学校公寓列表
     * 
     * @param schoolApartmentDist 学校公寓
     * @return 学校公寓集合
     */
    public List<SchoolApartmentDist> selectSchoolApartmentDistList(SchoolApartmentDist schoolApartmentDist);

    /**
     * 新增学校公寓
     * 
     * @param schoolApartmentDist 学校公寓
     * @return 结果
     */
    public int insertSchoolApartmentDist(SchoolApartmentDist schoolApartmentDist);

    /**
     * 修改学校公寓
     * 
     * @param schoolApartmentDist 学校公寓
     * @return 结果
     */
    public int updateSchoolApartmentDist(SchoolApartmentDist schoolApartmentDist);

    /**
     * 删除学校公寓
     * 
     * @param id 学校公寓主键
     * @return 结果
     */
    public int deleteSchoolApartmentDistById(Long id);

    /**
     * 批量删除学校公寓
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSchoolApartmentDistByIds(Long[] ids);
}
